package picture;

public abstract class Shape {
	private String name;// 没有特别的理由，属性一定是私有的

	public Shape(String s) {
		name = s;
	}

	public String getName() {
		return name;
	}

	public void show() {
		System.out.println("这是一个" + name);
	}

	public abstract double calcArea();

	public abstract double calcPremter();

}
